package Sortion;

public class bubbleSort {
    public static void main(String[] args) {
        int[] arr = {90,67,34,12,3,11,34,66,7};
        bubble(arr);
        for(int i = 0 ;i <arr.length; i++){
            System.out.print(arr[i] + "  ");
        }
    }

    public static void bubble(int[] arr){
        for(int i = 0; i <arr.length-1; i++){
            for(int j = 0; j <arr.length-i-1; j++){
                if(arr[j] > arr[j+1]){
                    int tmep = arr[j];
                    arr[j] = arr[j+1];
                    arr[j+1]  =tmep;
                }
            }
        }
    }






}